
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class MountMountCfg : public ManualSingleton <MountMountCfg>
{
	friend ManualSingleton <MountMountCfg>;
public:
	MountMountCfg();
	~MountMountCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const MountMountCfgInfo *GetMountMountCfgInfo(int32_t mountId);
	const MountMountCfgMap *GetMountMountCfgMap() { return &m_MountMountCfgMap; }
private:
	MountMountCfgMap m_MountMountCfgMap;
};

#define  g_MakeMountMountCfgTable() (MountMountCfg::Instance())
#define  g_GetMountMountCfgTable() (MountMountCfg::GetInstance())
#define  g_DelMountMountCfgTable() (MountMountCfg::Destroy())